<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>JavaScript语句由分号分隔</title>
</head>

<body>
    <h2>JavaScript 语句</h2>
    <p>JavaScript 语句被分号分隔。</p>
    <p id="demo1"></p>
    <script>
        var a,b,c;
        a = 5 ;
        b = 6 ;
        c = a + b;
        document.getElementById("demo1").innerHTML = c;
    </script>
</body>

</html>